package com.Design.FactoryPattern;

import com.Design.FactoryPattern.Shape.Factory;
import com.Design.FactoryPattern.impl.Shape;

public class FactoryDemo {

    public static void main(String [] args){
        Factory factory = new Factory();
        Shape shape1 = factory.getShape("Circle");
        Shape shape2 = factory.getShape("Square");

        shape1.draw();
        shape2.draw();
    }
}
